package com.wondertek.mam.tag.tagrep.impl;

import com.wondertek.mam.tag.tagrep.TagRep;
import com.wondertek.mam.tag.domain.TagWord;
import com.wondertek.mam.tag.wordSource.bean.NetHotWord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * 空实现
 * Created by wangdongxu on 2017-09-06 上午 11:08:43.
 */
public class TagSimpleRep implements TagRep {
    private static final Logger LOGGER = LoggerFactory.getLogger(TagSimpleRep.class);
    //private TagRepository tagRepository;
    @Override
    public Collection<TagWord> getTagWordWithScore(List<String> wordsList) {
        List<TagWord> tagWords = new ArrayList<>();

        for (String wl:wordsList) {
            tagWords.add(new TagWord(wl,2));
        }
        return tagWords;
    }

    @Override
    public void save(NetHotWord netHotWord) {
        LOGGER.info(netHotWord.toString());
    }
}
